import sim.engine.SimState;
import sim.engine.Steppable;


public class LegitimacyReducer implements Steppable {
	private static final long serialVersionUID = 1L;

	public void step(SimState state) {
		Rebellion reb = (Rebellion)state;
		
		if (reb.govtLegitimacy-reb.reductionAmount >= 0){
			reb.govtLegitimacy = reb.govtLegitimacy-reb.reductionAmount;
		}
		else{
			reb.govtLegitimacy = 0;
		}
	}

}
